package com.csxy.six.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class FoundItemDTO {
    @NotBlank(message = "标题不能为空")
    @Size(max = 100, message = "标题长度不能超过100个字符")
    private String title;

    @NotBlank(message = "描述不能为空")
    private String description;

    @NotNull(message = "分类ID不能为空")
    private Integer lfCatId;

    @NotNull(message = "拾获时间不能为空")
    private LocalDateTime foundTime;

    @NotBlank(message = "拾获地点不能为空")
    @Size(max = 100, message = "地点长度不能超过100个字符")
    private String location;

    @NotBlank(message = "联系方式不能为空")
    @Size(max = 100, message = "联系方式长度不能超过100个字符")
    private String contactInfo;

    private String imageUrl;

    @NotNull(message = "发布者ID不能为空")
    private Long publisherId;
}